Updated order of array_merge to allow user configuration to override default config