Fixed warnings about unused variables