Hi can you point out to where we can find the optimizer code? Would be nice to have a self contained code we can port elsewhere as well! Thanks!