Implemented support for custom configurations.

Fixes #2