Add thrift rule