Compiling read+write, not tested