Added function factory.