Adding set to zero function