Change promise constructor