First useful function to api is done. Having trouble with package setup.