Heavy water is used as moderator in a nuclear reactor. The function of the moderator is.