Safety sub-functions

The following safety sub-functions can be used.