Trying hard to do a better redirecting system