Issue #1: Modify looping in getLevel method so that it no longer fails to properly enumerate the keys.