Changed the messages sent to the backends to include metadata and separated formatting from the backend