Promisifying and moving code.