Added global and argument variables to rules