Add some comments and better variable names.