Common utils.