Switch to loading config from a hash