Modified sleep value in DialogUtils