Adding fixed smc.sh