@DJAA, maybe this post discussed previously should be helpful:
But please note that this only works at the enumerators level.