Used for a test. Should be moved below into the #ifdef for the test.