Add an each method to the redirector class