Restarted PTetra.c to make it more organized.