Added a secure API