Added the option to add a method