Finished Api implementation.