Making scanning optional