Changing readers/writers to array of structs instead