Adaptation of scanner function.
Merge branch 'master' of https://github.com/N4utilusS/Heuristic-Optimisation-Projects