Cleanup and testing.