Changed nonexistant variable 's' to instance variable 'scanner'