Added predeserialize hook