I'd skip the global $bucket, and just get it when you need it here