Added exit if no trid is entered