The path optimizer almost works