Added comments to explain process