Adding get_tag method