Added option for redirecting.