Improve generation with alternate pattern