Added enable optimizations