Got read/write mostly working