Functional.

Opps. Made my edits in wrong section.
Still need to fix adding a line, and test saving product.