Modified the redirection process