Safety subfunctions

The following safety subfunctions can be used.