This is another hack to deal with scope issues. I'm sure this is very bad practice so I would be happy to hear a suggestion of how I can make the `isBluetoothEnabled` available inside this `waitFor`.