Updated PCE to directly write to context.