Completed the core functionality of the unpacker