Export ModalLogic to global scope