Adding terminal listenning.