Hi Marc. Above file is not a huge file. And it includes only in tbl_replace.php script. (if I wrong, please correct me) So we can implement above file as a function in insert_edit.lib.php file. Is it ok? (The bug you mentioned yesterday not fixed yet. I'm looking at that also)