Added O3 optimization for modules