Added method for reading top of file.