Implemented level transitions.