Improved function inlining