Set state in different file formats