Working code for response stats