A referee in Uruguay has tested an electronic version of football’s yellow and red cards in a competitive match.

Eduardo Varela used a device about the size of a smartphone instead of traditional cards during Thursday’s Copa Uruguay game between Nacional and Rentistas. Nacional won 3-0.

The device has two buttons. One turns the screen yellow and the other turns it red, so a referee can show a caution or a dismissal and log the decision electronically at the same moment.