Add comments so that people can follow the code.