Added the publish function to the client, NWY!