Added utility functions for dmap