Added log statements for data retrieval time using guard rules