Generate method implemented