Added dynamic rule meter, cleaned up code a little bit