Make inlining optional, allow custom inline function
Finished making inlining function configurable