Fix bug that only used to measure size of first statement in functions to determine if splitting was necessary. Measure whole function instead.