Used memcpy instead of weird individual assignment