Made scan global.