Updated Pubsub.php