Added global doctor object for diagnosing