Cleaned up some of my code from the timeline.
Continued cleaning up the code for the viewframe.