Add readline fuction.