Added to the pack subroutine