Aded main scanner setup