Removed api code