Added keyword argument 'blocking' to publish()