Add generic type for sequence