Added the code to redirect properly before installation.