Added a getLevelUpEncoding function