Added better terminal and autoconf function