Modified serialization.rb