Added basic Api functions. Non-functional at the moment.