Some utility code for #basedev2014