Plugin execution on main thread