Adding blocks to run when the empty set is appears or disappears