Keep original publish function