Changing logging to a loop