Added write operation.