Optimize run()