Later in the century Joseph Haydn composed "Acide e Galatea" (1763) as his first opera while in Vienna. Designed for an imperial wedding, it was given a happy ending centred on the transformation scene after the murder of Acis as the pair declare their undying love. Johann Gottlieb Naumann was to turn the story into a comic opera, "Aci e Galatea", with the subtitle "i ciclopi amanti" (the amorous cyclops). The work was first performed in Dresden in 1801 and its plot was made more complicated by giving Polifemo a companion, Orgonte. There were also two other lovers, Dorinda and Lisia, with Orgonte Lisia's rival for Dorinda's love.