Change interface to prototype. Closes #8