Added notification function and generate a JSON with the problems