Commented main loop