use table.[un]pack more.
Hook documentation.