Adding spawn loop