Added functionality to retrieve document events