Added file loading and deserialization methods.