Add rating directive