Updated MyApplicationMaster using DistributedShell.ApplicationMaster.