Added redirect parameter.