Added method generation with default values