Fixed minor unused variable warnings.