Partially hooked up with esri api (backend).