Made global variables for easier access. This will ease the redirection process.