Add wrapPromise and addToQueue methods