Updated logic loop to use spawn fields