Cleaning up read-only and removing system write check.