Allow for Each func to take i argument