Restored unserialize functionality