Added knocking and related value repetition-dependent rules.