Changed to allow recursive searching, designed as a batch process

See notes