Added special case for zero contribution