Wrote tokenized fcn.

Resolves #25.