Fixed UNSAFE short name.
Used enum for value of failure flag.