Started adding -cmd argument into preload()