Add a few more comments and rename variable.