Use shared function.