Added derivation for std errors