More code gen, and a wake test file to test wake.