Adding rule support
adding rule support