I think this should be split between worker and master.