Fixed dialogue interface to work as expected.