Update OI.c

Adds functionality