Cleaned up select vars, attempted to solve bad write (not dumping bytes if ACK)