Changed fn types to &fn to be more clear.

Solves #1