Added support for dialogue objects.