Added a 'publish' option to the schema.

Also added a subroutine to publish the input data.