Later on it may be worth putting this in a helper, as there will probably be other places across the site where we want to reuse it.