Allow to pass settings as a hash directly.

Yaml file is kind of detail of a caller.