Can you please add some comments saying what all this is doing?