Added terminalType