Added variable name to access rules method (better implementation)