Hacky, but working struct parser.