New IoCTask style

Ported existing task to the new IoCTask style.