Changes to write different stuff to all addresses, tried to make types comply with each other