Added packet header and ender