Implement spawn kill and consolidate model code