Implemented Baart's criteria. Need to test it still.