Moved constructed code from Form to usable Module.