Updating script to 4.6

Set $baseFreqyency to $lfm when the latter isn't zero