Added parameter to batch to accept JSON files