Added level manager and tests.