Added optional params to API call