Added readline support