Right before last night's Oscars madness, Arby's managed to "buy back" Pharrell William's now-infamous hat on eBay for $44,100. The money will now go to Pharrell's charity for at-risk youth, From One Hand to AnOther.

.@Pharrell You're welcome. We're HAPPY to support a great cause & get our hat back. Good luck at the #Oscars tonight! pic.twitter.com/2oA7qDPX9z — Arby's (@Arbys) March 3, 2014

Arby's for its part must be pretty pleased with itself. After the Vivienne Westwood-designed "Mountain" hat made its debut at the Grammy's last month, the fast food chain gently ribbed Pharrell by asking for it back. The artist responded by putting it up for auction starting at $10,000. Apart from profiting on some minor publicity, it's still unclear what Arby's plans to do with the hat now.