Implemented half of the optimization.  No compilations performed yet