anchor.diff:     TYPE(ED_OutputType),              INTENT(IN)     :: y_ED         ! ElastoDyn outputs
      TYPE(InflowWind_OutputType),      INTENT(IN)     :: y_IfW        ! InflowWind outputs
      TYPE(OpFM_OutputType),            INTENT(IN)     :: y_OpFM       ! InflowWind outputs
  +   TYPE(BD_OutputType),              INTENT(IN)     :: y_BD(:)      ! BD Outputs
      TYPE(SrvD_OutputType), OPTIONAL,  INTENT(IN)     :: y_SrvD_prev  ! ServoDyn outputs from t - dt
      TYPE(FAST_ModuleMapType),         INTENT(INOUT)  :: MeshMapData  ! Data for mapping between modules
      INTEGER(IntKi),                   INTENT(  OUT)  :: ErrStat      ! Error status
      CHARACTER(*),                     INTENT(  OUT)  :: ErrMsg       ! Error message
   !  TYPE(AD_OutputType),              INTENT(IN)     :: y_AD         ! AeroDyn outputs
   
  -
  +   INTEGER(IntKi)                                   :: k            ! blade loop counter
   
      ErrStat = ErrID_None
      ErrMsg  = ""
  
positive.code:          
           ! note that the inputs at step(n) for ServoDyn include the outputs from step(n-1)
        IF ( firstCall ) THEN
           CALL SrvD_InputSolve( p_FAST, m_FAST, SrvD%Input(1), ED%Output(1), IfW%y, OpFM%y, MeshMapData, ErrStat2, ErrMsg2 )    ! At initialization, we don't have a previous value, so we'll use the guess inputs instead. note that this violates the framework.... (done for the Bladed DLL)
        ELSE
           CALL SrvD_InputSolve( p_FAST, m_FAST, SrvD%Input(1), ED%Output(1), IfW%y, OpFM%y, MeshMapData, ErrStat2, ErrMsg2, SrvD%y_prev   ) 
        END IF
        CALL SetErrStat( ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName )
  
  
negative.code:                
  END SUBROUTINE ED_InputSolve
  !----------------------------------------------------------------------------------------------------------------------------------
  SUBROUTINE SrvD_InputSolve( p_FAST, m_FAST, u_SrvD, y_ED, y_IfW, y_OpFM, y_BD, MeshMapData, ErrStat, ErrMsg, y_SrvD_prev )
  ! This routine sets the inputs required for ServoDyn
  !..................................................................................................................................
  
  