Minor fix to array interval sum, removed old functions.