Added support for incorporating DBus main loop.