Improved API endpoints. Deprecated (but not removed) old end points.