How to hook up MainStage and Thor