A working version of setup script