Basic API methods implemented.