Fix warnings about unused variables