Modified run_bgs in order to process all sequences
Modified run_bgs in order to process all sequences