Replace openstruct with struct