Modified not to use nested test.