Defined functors.
Merge branch 'dev'