Optimize with statments