Added processForm method