His lifestyle was rather wild, and he even got arrested once for debt and fraud. However, he continued to become well known as a composer and wrote a lot of instrumental and religious music. He spent some time in several large cities including Prague and Berlin. In Dresden he worked hard to make German Opera a success (most operas were still Italian in those days).