Extend some features from underscore for more complicated cases.