Added memory ordering. Memory ordering does not work yet.