Removing unused variables from debug