Allow passing of configuration through parameters

Closes #3