Made some changes to optimization code. Is looking hopeful.