Add support for constants

Closes #14