Started implementing FDR, calculating log(r), log(S(r)).