Recompiled
Adds level management