Removed unused API code