Memory fault happening during struct access. Not yet fixed