Changed so config is read from file.