Added nifty function.