Added PackInt and UnpackInt functions