Time for action – adding the main loop