Fixed warnings of unused variables.