Working on matrix scanner A.