Simply algorithm to save export rules