Added doctor fuctions