Added drive inverse code.