Added different invocations for create and publish