Added terminals to boxes