Hack version of level now works, lightly tested