Added basic readline() function