Implement pack command