Function useMethod