Added form function.