Removed depricated api code