Add binary dump and load functions