Daniel, I added the redirect function for you