Added comments to help me read it later.