Added motor side end sensor support.