Fixing warnings (unused variables)