Safety checking