Added security to API