Add partial option to generate method