Added generation of records from form