Working on an unused/undefined variables rule. (incomplete)