Fixes removed set but unused variables warining.