Adding rule generation - steven