Updated get_sequence method from Tags class