Don't crash when not linked
Fix crashes
Added archiveing