Fixed handling of Nothing level in getCategories; Removed debugging hooks.