Eliminate unused variables