Use local variables when calling backend enumerate function