Added more optional settings for redirects