Set up diffopt