Added getDebug function Variants