Added comments to clearify things