Updated ioc registration sample code