Implemented beacon scan.