Replaced IntSeq by Seq<T>