Added stop scan functionality