Restructures the idl file