Improved initial configuration script