Make things configurable

Fixes #1