Couldn't you use renderHead here?