Integrating post model with existing program infrastructure.

Still don't know what this is doing. Why is this in the controller?