Generalize phase-checking to single function. Alter logRespRatio to specifications