Added a convenient pack_command function for low level access.