Removed old code, added formorsub for defrule.