Setting proper debug flags closer to where they are needed and out of interface utility class.