Added level2
Implemented level switch
Refactoring