Better solution from SnappedCoffee.