Modification to run CasADi