Added tetra and terminate parameters