Added function to grab a line