Adds the product squares and some general formatting.