Add: Packet header length as constant
Add: Error detection for failed connection