Forgot to fill in all the sweep view.

Seems like we should be able to template some of this code.