Added handling of query parameters to listBucket