Changed iDyn constructor