Adds code for parsing self-delimited packets