Controlling the flow with the putRow() function