OK, got a whole bunch of script working. Currently using controller 'formtest' to experiment.