Added check for empty lines in file