Cleaned readline stuff