Added hook for before/after first publish