Added function to set terminal name