Added write authentication