Splitting function wrapping + bugfix

Bugfix was because profileFunction profiled everything, like boring normal objects.