Adds unit to Dbg class