Make it possible to pass in configuration as a hash