Changed plugin to allow setting endpoints and buckets separately instead of coopting host