Use build in spawn() function