Reorganized Form2 Code to be procedural rather than purely event based.