Improved scan handling

Scan handling was improved through locking the page for the duration of the processing of the scan result.