Adapted the Lynckia script to work with TabController.