Gutted references to config and categories, and added compile-time config