Added some api mockup functions.