Using a motor drive for stability