Refactoring and making everything work for short regionLevels array