Removed pickle code, only existed for debugging