Code for  Optimized Execution

Code for Optimized Execution