Changed method generation (not working)