Added getPreviousLevel() method