Working inlining of code