Improved assembly scan code.