Added readline support.