Add publish method