Added a separate main file for .tgp files