Use packet; add docstring