Add functions for unaligned memory access
Avoid unaligned memory access