Transitionings and general cleanup