Simplified code with global config header file