Rule added functions
Rule merge fixed