Using options object as a parameter to hosted. Target is a separate options property now.