Implement the terminal activity