Fixed unused scope issues and the Wire write implementation as well as added the stubs for more testing