Added level switching.