Scanner works, check has bugs