Improved total calculation for pipeline A