Replaced vanilla packet codec to be faster