Added scan code.