Implement getLevel

TODO replace all with getLevel