Fix unused parameter and variable warnings.