Optimize programs.