Move runInitializationScripts logic to reset