Updated to add rewrite log.