Begin marionette code