Started decoding received packets, bug fixes.