Can you add some comments here explaining what's happening?