Checks before start of scan if laser was detected first.
Code cleanup