Eliminated readLine() dependency