Updated main loader.sh