Add report generating logic