Removed exports, added dumb terminal check