Fixed transaction management on WRITE operations. WS impl updated.