Adding some comments for clarity.