Removed tmpMB in client operations, removed unused local variables and changes strings to MemoryBlocks where needed.