Almost there, but something is very broken with read and or write...