Added remaining logic to protect datasets from unauthorized modification