Support dialog injection.