Before adding LoglikeGaussianCostLayer