Added line fetching and local directory listing