Added optimize tool.