Writed a pub/sub part