Fixes a state transition
Implements security auditing