Add spawn build protection