Sorted the scanner bug.
Started on sorting.