Added redirect method.