Fixed wake issue, added asserts, stubbed IN/OUT.