Works, passes all tests.