-Add multisample function