Fix unused variable warnings.