Added an exit for level transitions