Adapting utils.