Used std::integer_sequence instead of custom one