Added functionality to repeat lines from a file.