Add explantory comments on the two functions