Effectful memory operations

See test for an example :)