Improved threads and added a configurable interval.
Removed port check, obsolete.