Allow passing of a config object
0.7.0