Added support for constant directives.

Closes #2.