Adding in a monitoring thread to parse incoming P2P messages.