There’s a lot of literature out there on how to brew the perfect cup of coffee. Professional baristas and everyday coffee drinkers passionately argue about the merits of different grind settings, bean types, and ideal temperatures. But no matter how much effort you put into your joe, once you pour that perfectly brewed coffee into a mug, the rest of the drinking experience is largely out of your hands. Changes in temperature—which, according to experts, can change your coffee’s flavor—are inevitable, and difficult to control. 

Enter Ember's new coffee mug, which lets you choose your coffee's temperature and keep it at that level for around four hours. You can set the mug to keep your coffee between 120 and 145 degrees; if it's hotter than you'd like, the mug will cool the coffee to your desired temperature close to six times faster than it would cool on its own. 

According to WIRED, the mug is the first creation of a new company founded by thermal scientist Clay Alexander. Alexander hopes to release a series of smart kitchen products in order to make cooking and eating more convenient. “He says he thinks a lot about events like Thanksgiving, where you work hard to prepare a big meal, only to have it go cold while everything else falls into place,” WIRED explains. “As with the mug, he wants to create devices that can solve that problem while showing no trace of the technology that makes it possible.” Check out the new Ember mug below: 

[h/t: WIRED]