Can you avoid using Base.invokelatest in this example?