Safety-related functions