Completed functionality for bt_scan