Printing rules to own function.