Avoid recursions in actions because of dialog popped in the main thread.
Also update README.