Updated zero function