Make InsertSmartTab a globally available function