Better onlyif logic.