added the stat retrieval for data capture.