Adds rule library