Add readline support