Fixed bug at issue #21, added levels