How to continuously gather statistics?