Add rules script