Add advanced options to optimization script