Added $key and $bucket