Adding an exit command to break the loop