Insert state in different file formats