Rework setup script.