Add hash and size fields