Replace list with vector in most of the API.