More bug fixes. Now the system should update the archives when needed.