Updating batch contexts.