Removed heartbeat from ferry, created a generic SyncThread class, which inherits GenThread and implements heartbeat.