Change promise func.