However, in spite of the warning by his former employer, by 1613 he was working in Hamburg. Two years later—he liked to swap jobs every two years—he returned to Copenhagen, but in 1618 he moved on to Halle where he obtained the position of "kapellmeister" to the Prince of Magdeburg, Christian Wilhelm of Brandenburg (1598-1631). By 1619 he was in Berlin, and the next year he returned to Copenhagen yet again. Two years later he moved to Gottorp in Schleswig-Holstein, where he served as director of the "Hofkapelle" until 1625.