ID-0 DI example. Works but far away from being perfect...