Function variables

Closes #35.