Modified to find sum as zero