Added the rest of the APIs. Working on tests.