Restructuring brings profitable first quarter