Added background 'ping' and 'check' threads.