Category fallback

I've implemented a category fallback option.