Added encoding/decoding acknowledge packets and more...