Updated kdemode with extra outputs