Finally, I'm freaking finished. It is decoding and encoding messages correctly