Brushed up scan code.