Add autoread and autowrite