Added getBucket method.