ADD progress bar and check for empty lines