Util methods based on underscore.