Added comments and clarification.