Moving helper function inline.