Starting to implement scan mode.