New config mechanism. Closes #33.