Adding back changes to osCFunc