Renamed the terminal name and optimized the overall speed