AGI do certain things on main thread.