added debugging flag.