Added delay on rule application to prevent infinite loops.