Added native dialog support.