Added addLevel() and level switching.