Commented out code in Service module - to support running as a windows service (I may need for upcoming project soon - and anyhow needed for HFWS - wehre this came from)