Initial work on terminal.