Skip bytes if offset of the payload is not equal to cursor.
Remove unused Put_line calls
Format debug output