Added comments explaining intent.