Start of derivations for MLP