Starting summing function