Removes more redundant old code.
Passes the current average price to the view.
Implements output of the current average price.