def METHOD_NAME():
    # Set up the main loop.
    DBusGMainLoop(set_as_default=True)
    global bus
    bus = dbus.SystemBus()
    global mainloop
    mainloop = GObject.MainLoop()
    om = dbus.Interface(bus.get_object(BLUEZ_SERVICE_NAME, '/'), DBUS_OM_IFACE)
    om.connect_to_signal('InterfacesRemoved', interfaces_removed_cb)
    print('Getting objects...')
    objects = om.GetManagedObjects()
    chrcs = []
    # List characteristics found
    for path, interfaces in objects.items():
        if GATT_CHRC_IFACE not in interfaces.keys():
            continue
        chrcs.append(path)
    # List sevices found
    for path, interfaces in objects.items():
        if GATT_SERVICE_IFACE not in interfaces.keys():
            continue
        chrc_paths = [d for d in chrcs if d.startswith(path + "/")]
        if process_hr_service(path, chrc_paths):
            break
    if not hr_service:
        print('No Heart Rate Service found')
        sys.exit(1)
    start_client()
    mainloop.run()