Fixing unused variables warnings.