Fixed issue #124. Adding dialog.