Return a promise from scan.