Add a take_every function.