Split up array_to_sum, in attempt to reduce complexity