Merged main_defs.h into custom_defines.h for simplicity