The fireEvent function was really never used
Added simple class for handling alerts