Updated enumerator to lock within the Current method.