Added main into the API