Put Y.batch in the promise module