Added ending when you press q.