Nit: The index and es arguments are reversed.