More role functionality. Clarified publish functions