Changed order in which configuration is read.