Crreated a way to pass around the API