Added id to stats
Changing direct access to variables to using the methods for rtpheaders