Rewrite of installer