Added conditions and comparison.