Added the possibility to write simple structs