Implemented scan, but untested.

Order 100 will work while 10 not, need debugging
In the first few test cases, 6 failed.