This is duplicated between the two views.