Added api functions as methos to api instance.