Copy functions using functionfactory