Update to LIUtils and various bugfixes