This function is hidden in other function. Don't think we need a header for that.