Added new get doc functionality