def METHOD_NAME():
	dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
	global bus
	bus = dbus.SystemBus()
	wpas_obj = bus.get_object(WPAS_DBUS_SERVICE, WPAS_DBUS_OPATH)
	if len(sys.argv) != 2:
		list_interfaces(wpas_obj)
		os._exit(1)
	wpas = dbus.Interface(wpas_obj, WPAS_DBUS_INTERFACE)
	bus.add_signal_receiver(interfaceAdded,
				dbus_interface=WPAS_DBUS_INTERFACE,
				signal_name="InterfaceAdded")
	bus.add_signal_receiver(interfaceRemoved,
				dbus_interface=WPAS_DBUS_INTERFACE,
				signal_name="InterfaceRemoved")
	bus.add_signal_receiver(propertiesChanged,
				dbus_interface=WPAS_DBUS_INTERFACE,
				signal_name="PropertiesChanged")
	ifname = sys.argv[1]
	path = wpas.GetInterface(ifname)
	if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
	iface = dbus.Interface(if_obj, WPAS_DBUS_INTERFACES_INTERFACE)
	iface.connect_to_signal("ScanDone", scanDone2,
				path_keyword='path')
	bus.add_signal_receiver(scanDone,
				dbus_interface=WPAS_DBUS_INTERFACES_INTERFACE,
				signal_name="ScanDone",
				path=path)
	bus.add_signal_receiver(bssAdded,
				dbus_interface=WPAS_DBUS_INTERFACES_INTERFACE,
				signal_name="BSSAdded",
				path=path)
	bus.add_signal_receiver(bssRemoved,
				dbus_interface=WPAS_DBUS_INTERFACES_INTERFACE,
				signal_name="BSSRemoved",
				path=path)
	bus.add_signal_receiver(blobAdded,
				dbus_interface=WPAS_DBUS_INTERFACES_INTERFACE,
				signal_name="BlobAdded",
				path=path)
	bus.add_signal_receiver(blobRemoved,
				dbus_interface=WPAS_DBUS_INTERFACES_INTERFACE,
				signal_name="BlobRemoved",
				path=path)
	bus.add_signal_receiver(networkAdded,
				dbus_interface=WPAS_DBUS_INTERFACES_INTERFACE,
				signal_name="NetworkAdded",
				path=path)
	bus.add_signal_receiver(networkRemoved,
				dbus_interface=WPAS_DBUS_INTERFACES_INTERFACE,
				signal_name="NetworkRemoved",
				path=path)
	bus.add_signal_receiver(networkSelected,
				dbus_interface=WPAS_DBUS_INTERFACES_INTERFACE,
				signal_name="NetworkSelected",
				path=path)
	bus.add_signal_receiver(propertiesChangedInterface,
				dbus_interface=WPAS_DBUS_INTERFACES_INTERFACE,
				signal_name="PropertiesChanged",
				path=path)
	bus.add_signal_receiver(propertiesChangedBss,
				dbus_interface=WPAS_DBUS_BSS_INTERFACE,
				signal_name="PropertiesChanged")
	bus.add_signal_receiver(propertiesChangedNetwork,
				dbus_interface=WPAS_DBUS_NETWORK_INTERFACE,
				signal_name="PropertiesChanged")
	gobject.MainLoop().run()