Implementing profiles and rules