We should probably move this into a helper function so we don't have to duplicate this header in the two API functions.