Implemented functor construction.