Fixing on/off issues with power() function
Enable discoverable and noscan modes in bluez