Implemented the bucket command.