Creates a process form function