Ought to add optimizeIL to toIL as well.