Used enumerate instead of zip in processor