Tidy-up weekly report code.