Guard chmod at the end.