Reimplemented fitting in dB scale