Setting up for the scan