Added motor error warning mechanism