Minor cleanup, implemented message sending.