Improved (not quite fixed) init.sh