Add option to make folding configurable

Fixes #3