Problem: The sleep before collecting the initial screen state is confusing and may lead to unexpected success if it comes after a blocking RPC call. Solution: Remove that sleep and add an "intermediate" argument.
Co-authored-by: Famiu Haque <famiuhaque@protonmail.com>