Added utilities to write custom packers.