All tests passed.  Cleaning up compute method.