Forcing STDOUT.flush after every action.