Given the pair (P, η) of (0,2) tensors, where η defines a volume element, we consider a new variational problem varying η only. We then have Einstein metrics and slant immersions as critical points of the 1st variation. We may characterize Ricci flat metrics and Lagrangian submanifolds as stable critical points of our variational problem.