Moved communication and api calls into client classes.