Adding additional parameter to the publish calls with the success/error callbacks