Generate functions that only execute once Promises have been fulfilled.