Added #rules hash feature