Removed unaligned memory allocation. Added getting/setting