Added log statements for data retrieval