Added download functionality to publisher