Added OC api and some basic init stuff