Convert scan() to the new world format API.