Added an FFILoaded check. Added Sync and GetCurrentThreadID.