Fixed a few LMA threading issues (when single threaded), must port to C#