Small improvements to publication contribute function