Using execSync instead of allsync