Changed waiting for spawn order.