Do this in the view so that it gets cached.