Add o3 optimization for modules