vector: Update API to be more flexible.