Updated to preserve sign of sum