Added delivery total logic