Thank you!
Yeah I thought the implementation of the scan was a bit hard, I should try to implement this feature to learn even more :D