Added O3 compiler optimizations