Util functions for argument unpacking