Added useful comments, for clarity