Updated model regenerate script