Removed old API which used $resource