Add prefix support

Closes #1.