again excuse the ignorance and I appreciate your patience where exactly am I adding that code to the existing commands? do you mean something like this: if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then # add here switch on instructions /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot>/dev/null echo "OFF"; exit 1; fi; if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then # add here switch off instructions /usr/sbin/kernel-unload /home/user/MyDocs/originalkernel.txt | sudo gainroot>/dev/null echo "OFF"; exit 0; else # add here switch on instructions /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot>/dev/null echo "OFF"; exit 1; fi;