Hooked the redirect function with init.  Trying to avoid the "Headers already sent" error.