Major optimizations (func_detail)