Adds idl setup function