a conveyor belt on an endless loop sent ceramic mugs around and around past a boxy-looking device that paused and scanned each one , flashing either red or green lights , depending on whether it found a defect .