Commented api code