Improved make_hash and dd helpers