Allow enum() function to access the current item