Revised the parsePayloads function a little. Added some cheap statistics for future use.