Added derivation of interface conditions.