Added memory alignment feature