Added global config array. Removed defines.