Bluetooth connection code complete.