Chnages to API for exposing end point