Regenerate files detail based on improved rtn detection algorithm