Changed AVContext and added an evaluation routine for AVc on it.