I just went with basic "do same thing over and over again" loop. Perhaps not the most interesting take on the jams theme, but I decided in favour of it to spend more time polishing something basic, rather than waste time looking for a better idea :)