Add 'depth' to rules.