Added readline support instead of just reading strings