Added support back for the FSM global variable if it doesn't exist already to avoid conflicts.