Use lambda for threadsafe call in reloader