Added network class and message sending.