Adding main JS API for cycle