Added an option of giving a list of files as input