Changed code to use stored config values.
Migration class updated to reflect new config class code