Adding readline support