forgot the end on a case statement --- Adding redirection support.