Added function to send and receive the public goals... and other stuff.