Finished evaluation code. All tunable parameters look like they work as expected.