Added median tSNR calculation.