Declare Global
Procedures called from the Tray Icon menu have to be declared Globally as above to work correctly.