Latest update for main and txt handler