Added link to bug that this code is testing.
Cleaned up argument passing.