Jack - Modified a few things when trying to get the COGS to work correctly.