Adds if statement for setting the TERM type