Optimized compilation working