Added function collect and censor to the writer effect