Modified to handle multiple control transactions within a packet. Cleaned up the output a little bit more.