Added the method generation feature.