Added pattern matching for IEnumerables