Adding missing functions in document service