Refactored stats collection and added statistics of stats collection, with response.time in nanoseconds