It’s 3 a.m. and you’re dying for freshly-baked cupcakes. If you’re lucky enough to live in the Los Angeles area, you won’t have to make them yourself — you can just hit up the new cupcake machine at gourmet bakery Sprinkles.

Sprinkles, which is largely credited for the cupcake-craze that’s swept the US in the past few years, has installed the ATM-like machines outside one of its Beverly Hills locations and dubbed it 24-Hour-Sprinkles.

And it won’t just have treats made for human consumption. This being Beverly Hills and all, there will also be confections for your canine companions. A Sprinkles spokesperson said:

This automatic cupcake machine dispenses freshly baked cupcakes, cupcake mixes, apparel and even cupcakes for Fido! In the heart of Beverly Hills nestled between Sprinkles Cupcakes and the brand new Sprinkles Ice Cream, 24 Hour Sprinkles will be continuously restocked day and night with a variety of freshly baked cupcake flavors.”

In other words, forget a late-night run to the border. Now it’ll be all about a run to the bakery.