Moved 1 isOnline() call to other thread