WIP: Adding rules script