Ported extension methods from Deki to DReAM.