Write mode partially implemented