Inject state in various file formats