TODO update. Hooked rules were added.