Added validate spawn method.