Added comments to help clarify some things.