Modifying Z&S limiting so that it can use minimal number of nodes required