Added reference to last added element and check against it