Need to return promise from onPrepare hook.