Added buffer full fix, add payload, packet, and buffer checks