Write to correct pickle