Added object factories for fcuntions and registered them