Starting network, message sending. Made debug-message a templated function.