Added trial number to the serialized file.