Improved archive logging and put in max limit